package LOGISTICS.service;

import java.util.List;

import LOGISTICS.entity.RecheckOrder;
import LOGISTICS.mapper.RecheckOrderMapper;

public class RecheckOrderService {
	RecheckOrderMapper recheckOrderMapper=new RecheckOrderMapper();
	RecheckDetailsService recheckDetailsService=new RecheckDetailsService();

	public List<RecheckOrder> getRecheckOrder(RecheckOrder temp) throws Exception {
		return recheckOrderMapper.getRecheckOrder(temp);
	}

	public void updateTips(String newValue, Integer id) throws Exception {
		recheckOrderMapper.updateTips(newValue,id);
	}

	public void loadRecheckOrderFromOldModel(String orderNumber) throws Exception {
		recheckOrderMapper.createRecheckOrder(orderNumber);
		recheckDetailsService.loadRecheckDetailsFromOldModel(orderNumber);
		
	}
}
